﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Wicresoft.EKA.NRemedy.Test
{
    [TestClass]
    public class UnitTest5
    {
        [TestMethod]
        public void TestMethod1()
        {
            string expect = "asfwefasdfaswfsdvvsadfas";
            SymmetricMethod me = new SymmetricMethod();
            string temp = me.Encrypto(expect);
            SymmetricMethod med = new SymmetricMethod();
            string actual = med.Decrypto(temp);
            Assert.AreEqual<string>(expect, actual);
        }

        [TestMethod]
        public void TestMethod2()
        {
            int expect=1000;
            NRemeyGlobal.Start();
            Assert.AreEqual<int>(expect,1000);

        }

        [TestMethod]
        public void TestMethod3()
        {
            int expect = 1000;
            for (int i = 0; i < expect; i++)
            {
                ARLoginContextPool.Instance.Add("user" + i, new ARLoginContext("server" + i, "user" + i, "password" + i, "authentiacation" + i));
            }
            NRemeyGlobal.End();
            Assert.AreEqual<int>(expect, 1000);

        }
       


    }
}
